package com.rubiksillusions;

import java.util.Date;

public class SolverLoopingTest {
	public static void main(String[] args) {
		RubiksCube rubiksCube = new RubiksCube("obw6wybwbrgyyyrgogwgyogorwwoyyrbgorog6wyobbwgbbrbrgyrr");
		String facelets = rubiksCube.getFaceletsString();
		Date before = new Date();
		String moves = Utilities.getSolveCrossMoves(facelets);
		Date after = new Date();
		System.out.print(moves);
		rubiksCube.executeMovesList(moves, true);
		if (!rubiksCube.testStatus(".w.www.w.............gg.......bb.....o..o.......rr....")) {
			System.out.println("[FAILED in " + (after.getTime() - before.getTime()) + " ms]");
		} else {
			System.out.println("[SOLVED in " + (after.getTime() - before.getTime()) + " ms]");
		}
	}
}
